package com.haoqizhe.kernel.mybatis.generator.utils;

/**
 * 静态常量
 * @author haoqizhe.li
 * @date 2018/10/31
 **/
public class Constants {

    public static final String SAVE_API_VALUE = "保存%s";
    public static final String SAVE_API_NOTES = "保存单条%s，为空字段不保存，使用数据库默认值";
    public static final String SAVE_API_PATH = "/save";
    public static final String SAVE_API_SHIRO_KEY = ":save";
    public static final String SAVE_API_SECURITY_KEY = "_SAVE";

    public static final String UPDATE_API_VALUE = "更新%s";
    public static final String UPDATE_API_NOTES = "更新单条%s，为空字段不更新，主键不能为空";
    public static final String UPDATE_API_PATH = "/update";
    public static final String UPDATE_API_SHIRO_KEY = ":update";
    public static final String UPDATE_API_SECURITY_KEY = "_UPDATE";

    public static final String REMOVE_API_VALUE = "物理删除%s";
    public static final String REMOVE_API_NOTES = "根据主键ID物理删除单条%s";
    public static final String REMOVE_API_PATH = "/delete";
    public static final String REMOVE_API_SHIRO_KEY = ":delete";
    public static final String REMOVE_API_SECURITY_KEY = "_DELETE";

    public static final String GET_API_VALUE = "获取%s";
    public static final String GET_API_NOTES = "根据主键ID获取单条%s";
    public static final String GET_API_PATH = "/get";
    public static final String GET_API_SHIRO_KEY = ":get";
    public static final String GET_API_SECURITY_KEY = "_GET";

    public static final String LIST_API_VALUE = "查询所有%s";
    public static final String LIST_API_NOTES = "根据条件匹配查询所有%s";
    public static final String LIST_API_PATH = "/list";
    public static final String LIST_API_SHIRO_KEY = ":list";
    public static final String LIST_API_SECURITY_KEY = "_LIST";

    public static final String PAGE_API_VALUE = "分页获取%s";
    public static final String PAGE_API_NOTES = "根据条件分页获取%s";
    public static final String PAGE_API_PATH = "/page";
    public static final String PAGE_API_SHIRO_KEY = ":page";
    public static final String PAGE_API_SECURITY_KEY = "_PAGE";

    public static final String ID_NAME = "主键";
    public static final String ID_NOT_NULL_MESSAGE = "主键id不能为空";
    public static final String RESULT_MESSAGE_200 = "成功";


    public static final String SECURITY_FRAMEWORK_SHIRO = "shiro";
    public static final String SECURITY_FRAMEWORK_SECURITY = "security";

}
